package cn.com.czpb.client.utils;

import android.app.Activity;
import android.content.Intent;

import cn.com.czpb.client.model.live.LiveItemBean;
import cn.com.czpb.client.model.news.HighRiseBean;
import cn.com.czpb.client.model.news.NewsDetailBean;
import cn.com.czpb.client.model.video.VideoItemBean;
import cn.com.czpb.client.module.MainActivity;
import cn.com.czpb.client.module.actives.activity.HuodongDetailActivity;
import cn.com.czpb.client.module.live.activity.LiveDetailActivity;
import cn.com.czpb.client.module.live.activity.LiveListActivity;
import cn.com.czpb.client.module.live.activity.TxtAndPicActivity;
import cn.com.czpb.client.module.livenew.activity.PlayerLiveActivity;
import cn.com.czpb.client.module.nanning.activity.ChangeCityActivity;
import cn.com.czpb.client.module.nanning.activity.FuWuActivity;
import cn.com.czpb.client.module.news.activity.CommentActivity;
import cn.com.czpb.client.module.news.activity.DangWuActivity;
import cn.com.czpb.client.module.news.activity.FuWuMainActivity;
import cn.com.czpb.client.module.news.activity.HighriseActivity;
import cn.com.czpb.client.module.news.activity.HighriseDetialActivity;
import cn.com.czpb.client.module.news.activity.Home_MyActivity;
import cn.com.czpb.client.module.news.activity.MyEditColumnActivity;
import cn.com.czpb.client.module.news.activity.NewsPagerActivity;
import cn.com.czpb.client.module.news.activity.NewsSzbDetailActivity;
import cn.com.czpb.client.module.news.activity.NewsVideoActivity;
import cn.com.czpb.client.module.news.activity.SearchActivity;
import cn.com.czpb.client.module.live.activity.VideoLivingActivity;
import cn.com.czpb.client.module.news.activity.WinDowActivity;
import cn.com.czpb.client.module.news.activity.ZhengWuActivity;
import cn.com.czpb.client.module.newspager.activity.NewspagerActivity;
import cn.com.czpb.client.module.notepad.InputNotepadActivity;
import cn.com.czpb.client.module.personal.acticity.BindMobileActivity;
import cn.com.czpb.client.module.personal.acticity.HtmlSaoActivity;
import cn.com.czpb.client.module.personal.acticity.LoginActivity;
import cn.com.czpb.client.module.personal.acticity.SystemSetActivity;
import cn.com.czpb.client.module.subscribe.activity.SubscribeDetailActivity;
import cn.com.czpb.client.module.subscribe.activity.SubscribeMeActivity;
import cn.com.czpb.client.module.subscribe.activity.SubscribeMoreActivity;

/**
 * Created by 猪猪侠 on 2017/7/3.
 */

public class PageCtrl {


    public static void start2MainActivity(Activity context){
        Intent intent = new Intent(context, MainActivity.class);
        context.startActivity(intent);
        AAnim.ActivityStartAnimation(context);
    }
    public static void start2BindMobileActivity(String bindid,Activity context){
        Intent intent = new Intent(context, BindMobileActivity.class);
        intent.putExtra("bindid",bindid);
        context.startActivity(intent);
        AAnim.ActivityStartAnimation(context);
    }

    public static void start2EditColumnActivity(Activity context){
        Intent intent = new Intent(context, MyEditColumnActivity.class);
        context.startActivity(intent);
        AAnim.ActivityStartAnimation(context);
    }
    public static void start2SystemSetActivity(Activity context){
        Intent intent = new Intent(context, SystemSetActivity.class);
        context.startActivity(intent);
        AAnim.ActivityStartAnimation(context);
    }
    //跳转到用户信息
    public static void start2HomeMyActivity(Activity context){
        Intent intent = new Intent(context, Home_MyActivity.class);
        context.startActivity(intent);
        AAnim.ActivityStartAnimation(context);
    }
    public static void start2SearchActivity(Activity context){
        Intent intent = new Intent(context, SearchActivity.class);
        context.startActivity(intent);
        AAnim.ActivityStartAnimation(context);
    }
    public static void start2SetActivity(Activity context){
        Intent intent = new Intent(context, SystemSetActivity.class);
        context.startActivity(intent);
        AAnim.ActivityStartAnimation(context);
    }
    public static void start2LoginActivity(Activity context){
        Intent intent = new Intent(context, LoginActivity.class);
        context.startActivity(intent);
        AAnim.ActivityStartAnimation(context);
    }
    public static void startCommActivity(Activity context, String nid, String type, String newstype, String newsid, NewsDetailBean newsBean){
        Intent intent = new Intent(context, CommentActivity.class);
        intent.putExtra("nid",nid);
        intent.putExtra("newsid",newsid);
        intent.putExtra("newstype",newstype);
        intent.putExtra("type",type);
        intent.putExtra("newsbean",newsBean);
        context.startActivity(intent);
        AAnim.ActivityStartAnimation(context);
    }

    public static void start2VideoPlayActivity(Activity context, String from, VideoItemBean videoItemBean){
        Intent intent = new Intent(context, NewsVideoActivity.class);
        intent.putExtra("rvalue",videoItemBean.getVid());
        intent.putExtra("nid",videoItemBean.getVid());
        intent.putExtra("tid",videoItemBean.getVid());
        intent.putExtra("from",from);
        intent.putExtra("videoItemBean",videoItemBean);
        context.startActivity(intent);
        AAnim.ActivityStartAnimation(context);
    }

    //活动详情页面
    public static void start2HuodongDetailActivity(String url,Activity context){
        Intent intent = new Intent(context,HuodongDetailActivity.class);
        intent.putExtra("url",url);
        context.startActivity(intent);
        AAnim.ActivityStartAnimation(context);
    }
    //图文直播页面
    public static void start2TxtAndPicActivity(Activity context){
        Intent intent = new Intent(context,TxtAndPicActivity.class);
        context.startActivity(intent);
        AAnim.ActivityStartAnimation(context);
    }//视频直播页面
    public static void start2VideoLivingActivity(Activity context){
        Intent intent = new Intent(context,VideoLivingActivity.class);
        context.startActivity(intent);
        AAnim.ActivityStartAnimation(context);
    }
    //我的订阅页面
    public static void start2SubscribeMeActivity(Activity context){
        Intent intent = new Intent(context,SubscribeMeActivity.class);
        context.startActivity(intent);
        AAnim.ActivityStartAnimation(context);
    }

    //订阅更多
    public static void start2SubscribeMoreActivity(Activity context){
        Intent intent = new Intent(context,SubscribeMoreActivity.class);
        context.startActivity(intent);
        AAnim.ActivityStartAnimation(context);
    }
    //个人主页
    public static void start2SubscribeDetailActivity(Activity context,String focusUid,String tid){
        Intent intent = new Intent(context,SubscribeDetailActivity.class);
        LogUtils.i("uid-->"+focusUid);
        LogUtils.i("tid-->"+tid);
        intent.putExtra("focusUid",focusUid);
        intent.putExtra("tid",tid);
        context.startActivity(intent);
        AAnim.ActivityStartAnimation(context);
    }
    //数字报页面
    public static void start2NewsPagerActivity(Activity context){

        Intent intent = new Intent(context, NewsPagerActivity.class);
        context.startActivity(intent);
        AAnim.ActivityStartAnimation(context);
    }
    //数字视窗页面
    public static void start2WinDowActivity(Activity context){

        Intent intent = new Intent(context, WinDowActivity.class);
        context.startActivity(intent);
        AAnim.ActivityStartAnimation(context);
    }
    //党务
    public static void start2DangWuActivity(Activity context){

        Intent intent = new Intent(context, DangWuActivity.class);
        context.startActivity(intent);
        AAnim.ActivityStartAnimation(context);
    }//政务
    public static void start2ZhengWuActivity(Activity context){

        Intent intent = new Intent(context, ZhengWuActivity.class);
        context.startActivity(intent);
        AAnim.ActivityStartAnimation(context);
    }
    public static void start2FuwuActivity(Activity context){

        Intent intent = new Intent(context, FuWuMainActivity.class);
        context.startActivity(intent);
        AAnim.ActivityStartAnimation(context);
    }
    //高层页面
    public static void start2HighriseActivity(Activity context){

        Intent intent = new Intent(context, HighriseActivity.class);
        context.startActivity(intent);
        AAnim.ActivityStartAnimation(context);
    }
    //数字报详情页面
    public static void start2NewsPagerDetailActivity(Activity context,String title,String url){

        Intent intent = new Intent(context, NewsSzbDetailActivity.class);
        intent.putExtra(NewsSzbDetailActivity.SZB_URL, url);
        intent.putExtra(NewsSzbDetailActivity.SZB_TITLE, title);
        context.startActivity(intent);
        AAnim.ActivityStartAnimation(context);
    }
    //高层详情页面
    public static void start2HighriseDetialActivity(Activity context,HighRiseBean bean){

        Intent intent = new Intent(context, HighriseDetialActivity.class);
        intent.putExtra("bean",bean);
        context.startActivity(intent);
        AAnim.ActivityStartAnimation(context);
    }
    //服务详情页面
    public static void start2FuWuDetialActivity(Activity context,String fuwuurl){

        Intent intent = new Intent(context, FuWuActivity.class);
        intent.putExtra("fuwuurl",fuwuurl);
        context.startActivity(intent);
        AAnim.ActivityStartAnimation(context);
    }

    //数字报详情
    public static void start2NewsPagerActivity(Activity context,String url){

        Intent intent = new Intent(context, NewspagerActivity.class);
        intent.putExtra("url",url);
        context.startActivity(intent);
        AAnim.ActivityStartAnimation(context);
    }
    //直播详情
    public static void start2LiveListActivity(Activity context,String type){
        Intent intent = new Intent(context, LiveListActivity.class);
        intent.putExtra("type",type);
        context.startActivity(intent);
        AAnim.ActivityStartAnimation(context);
    }
    //直播详情
    public static void start2LiveDetailActivity(Activity context,LiveItemBean bean){
        Intent intent = new Intent(context, LiveDetailActivity.class);
        intent.putExtra("bean",bean);
        context.startActivity(intent);
        AAnim.ActivityStartAnimation(context);
    }
    //直播详情
    public static void start2ChangeCityActivity(Activity context){
        Intent intent = new Intent(context, ChangeCityActivity.class);
        context.startActivity(intent);
        AAnim.ActivityStartAnimation(context);
    }
    //直播详情
    public static void start2HtmlSaoActivity(Activity context,String url){
        Intent intent = new Intent(context, HtmlSaoActivity.class);
        intent.putExtra("url",url);
        context.startActivity(intent);
        AAnim.ActivityStartAnimation(context);
    }
    public static void start2InputNotepadActivity(Activity context,String time,String content,int type,long id){
        Intent intent = new Intent(context, InputNotepadActivity.class);
        intent.putExtra("time",time);
        intent.putExtra("content", content);
        intent.putExtra("type", type);
        intent.putExtra("id", id);
        context.startActivity(intent);
        AAnim.ActivityStartAnimation(context);
    }


    //党务
    public static void start2PlayerLiveActivity(Activity context){

        Intent intent = new Intent(context, PlayerLiveActivity.class);
        context.startActivity(intent);
        AAnim.ActivityStartAnimation(context);
    }

}
